package com.aegean.MonitorExamSYS.tool.action;

import java.io.File;
import java.util.List;

import javax.annotation.Resource;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.tool.business.ToolBusiness;
import com.aegean.MonitorExaxSYS.model.ExamInfo;
import com.aegean.MonitorExaxSYS.model.ExamineeValue;
import com.opensymphony.xwork2.ActionSupport;

@Controller("NavigationIndex")
@Scope("prototype")
public class NavigationIndex extends ActionSupport {
	@Resource
	ToolBusiness business;
	List<ExamInfo> exams1;
	List<ExamInfo> exams2;
	/**
	 * 
	 */
	private static final long serialVersionUID = -5394836445496892399L;

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stube
		
		exams1 = business.showExamList(null,0,0, 0, 8, null, null, null, 1);
		exams2 = business.showExamList(null,0,3, 0, 8, null, null, null, 1);
		return SUCCESS;
	}

	public List<ExamInfo> getExams1() {
		return exams1;
	}

	public void setExams1(List<ExamInfo> exams1) {
		this.exams1 = exams1;
	}

	public List<ExamInfo> getExams2() {
		return exams2;
	}

	public void setExams2(List<ExamInfo> exams2) {
		this.exams2 = exams2;
	}
}
